import request from '@/utils/request'

// 查询矿机基础信息列表
export function listMMineMachine(query) {
  return request({
    url: '/api/mMineMachine/list',
    method: 'get',
    params: query
  })
}

// 查询矿机基础信息详细
export function getMMineMachine(id) {
  return request({
    url: '/api/mMineMachine/' + id,
    method: 'get'
  })
}

// 新增矿机基础信息
export function addMMineMachine(data) {
  return request({
    url: '/api/mMineMachine',
    method: 'post',
    data: data
  })
}

// 修改矿机基础信息
export function updateMMineMachine(data) {
  return request({
    url: '/api/mMineMachine',
    method: 'put',
    data: data
  })
}

// 删除矿机基础信息
export function delMMineMachine(id) {
  return request({
    url: '/api/mMineMachine/' + id,
    method: 'delete'
  })
}
